package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文件信息对象 hz_file_url
 *
 * @author ruoyi
 * @date 2021-07-17
 */
public class HzFileUrl extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    private Long id;

    /**
     * 上传总信息id
     */
    @Excel(name = "上传总信息id")
    private Long uploadInfoId;

    /**
     * 文件保存物理地址
     */
    private String fileUrl;

    /**
     * 文件原文件名
     */
    @Excel(name = "文件原文件名")
    private String fileName;

    /**
     * 文件后缀
     */
    @Excel(name = "文件后缀")
    private String fileFormat;

    /**
     * 文件长度
     */
    @Excel(name = "文件长度")
    private Long fileSize;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setUploadInfoId(Long uploadInfoId) {
        this.uploadInfoId = uploadInfoId;
    }

    public Long getUploadInfoId() {
        return uploadInfoId;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileFormat(String fileFormat) {
        this.fileFormat = fileFormat;
    }

    public String getFileFormat() {
        return fileFormat;
    }

    public void setFileSize(Long fileSize) {
        this.fileSize = fileSize;
    }

    public Long getFileSize() {
        return fileSize;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("uploadInfoId", getUploadInfoId())
                .append("fileUrl", getFileUrl())
                .append("fileName", getFileName())
                .append("fileFormat", getFileFormat())
                .append("fileSize", getFileSize())
                .toString();
    }
}
